/**
 * 选择样式服务类
 */
export class SelectionStylesService {
  private static instance: SelectionStylesService

  static getInstance(): SelectionStylesService {
    if (!SelectionStylesService.instance) {
      SelectionStylesService.instance = new SelectionStylesService()
    }

    return SelectionStylesService.instance
  }

  get allow(): string {
    return `
    user-select: auto !important;
    -webkit-user-select: auto !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
  `
  }

  get prevent(): string {
    return `
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
  `
  }
}
